package com.l024.easyandroidlib.http.config;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import okhttp3.Interceptor;

/**
 * @Author: Cat
 * @CreateTime: 2022-07-29  10:12
 * @Description: TODO
 * @Version: 1.0
 */
public abstract class HttpConfig {

    //设置域名
    public abstract String baseUrl();

    //设置公共请求头
    public Map<String,String> addHeaders(){
        return new HashMap<>();
    }

    //设置公共参数
    public Map<String,String> addParams(){
        return new HashMap<>();
    }

    //设置拦截器
    public Set<Interceptor> addInterceptor(){
        return new HashSet<>();
    }

    public boolean debug(){
        return true;
    }

    public int getConnectTime(){
        return 60;
    }
    public int getReadTime(){
        return 60;
    }
    public int getWriteTime(){
        return 60;
    }
}
